package com.cne.gmail.Gmail.es;

import com.cne.gmail.Gmail.model.AttchmentModel;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import java.util.List;

@Data
@ToString
@Document(indexName="cnedb",type="cnedb",indexStoreType="fs",shards=5,replicas=1,refreshInterval="-1")
public class EsEmail {
    private String emailAddress;
    @Id
    private String messageId;
    private String userName;
    private String from;
    private String To  ;
    private String Cc;
    private String subject;
  //  @Field(fielddata = true,type=FieldType.Long)
    private Long intnetdate;
    private String date;
    private String plain;
    private String html;
    private Integer status;
    private List<AttchmentModel> attachMentModels;
    private String label;
}
